const express = require('express');
const router = express.Router();
const { jwtCheck } = require('../../util/jwt');
const ArticleInfo = require('../../logicFun/system/article')

// 添加文章
router.post('/addArticle', jwtCheck, ArticleInfo.addArticle)

// 编辑文章
router.post('/editArticle', jwtCheck, ArticleInfo.editArticle)

// 删除文章
router.delete('/deleteArticle/:id', jwtCheck, ArticleInfo.deleteArticle)

// 查询文章列表
router.get('/queryArticleList', jwtCheck, ArticleInfo.queryArticleList)

// 查询文章详情
router.post('/ArticleDetail', jwtCheck, ArticleInfo.articleDetail)

module.exports = router;